package cn.dglydrpy.study.spring.ioc.postProcessor;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.stereotype.Component;

/**
 * @Description: factoryBean的后置处理器,默认对所有factoryBean都有效 
 * 典型应用场景:PropertyPlaceholderConfigurer 替换Spring表达式的值
 * 
 * @author:LY_飘涯
 */
@Component 
public class MyBeanFactoryPostProcessor implements BeanFactoryPostProcessor{

	@Override
	public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
		System.out.println("执行BeanFactoryPostProcessor.postProcessBeanFactory,beanFactory:" + beanFactory);
	}

}
